#include<stdio.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<stdlib.h>
#include<unistd.h>
#define LOG_NORMAL "lognormal.txt" 
#define LOG_ERR "logerr.txt"

int main()
{
    close(1);
    int fd = open(LOG_NORMAL,O_CREAT | O_WRONLY | O_TRUNC,0666);
    printf("you can see me\n\n\n");
    fflush(stdout);
    close(fd);
    return 0;
}

